package com.example.wochacha.mvpdemo.login.model;

/**
 * Created by wochacha on 2017/12/1.
 */

public class UserModel implements IUser{
    public String name;
    public String pwd;

    public UserModel() {

    }

    public UserModel(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }

    @Override
    public int checkUserValidity(String name, String pwd) {
        if (name == null || pwd == null
                || !this.name.equals(name)
                || !this.pwd.equals(pwd)) {
            return -1;
        }
        return 0;
    }
}
